package ge.gen.eBdgt.vo;


@SuppressWarnings("serial")
public final class ProjectKindVO implements Comparable<ProjectKindVO> {
	String icn;
	String projectKind;
    String year;
    
	public String getIcn() {
		return icn;
	}

	public void setIcn(String icn) {
		this.icn = icn;
	}

	public String getProjectKind() {
		return projectKind;
	}

	public void setProjectKind(String projectKind) {
		this.projectKind = projectKind;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public boolean equals(Object o) {
		if (!(o instanceof ProjectKindVO))
			return false;
		ProjectKindVO n = (ProjectKindVO) o;
		return n.icn.equals(icn) && n.projectKind.equals(projectKind);
	}

	public int hashCode() {
		return 31 * icn.hashCode() + projectKind.hashCode();
	}

	public String toString() {
		return icn + " " + projectKind;
	}

	public int compareTo(ProjectKindVO n) {
		int lastCmp = projectKind.compareTo(n.projectKind);
		return (lastCmp != 0 ? lastCmp : icn.compareTo(n.icn));
	}
}
